# 预定义宏
add_compile_definitions(_USREXE)

# 附加包含目录
include_directories(${PROJECT_BINARY_DIR}/bin/include)

# 查找程序文件
aux_source_directory(. SOURCE_FILE)

# 生成可执行文件
add_executable(tutorial ${SOURCE_FILE})

# 引用动态库
target_link_libraries(tutorial PUBLIC ${PROJECT_NAME})

# 设置MSVC编译配置
set_property(TARGET tutorial PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")